package utils;

import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;

/**
 * @Author: DRevelation
 * @Date: 2020/12/15 13:31
 */
public class RandomStandard {

    private static Random random;
    static {
        try {
            random = SecureRandom.getInstanceStrong();
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        int r = random.nextInt(100);
        System.out.println("r = " + r);
    }
}
